{% extends "index/mainIndex.html.twig" %}
{% block indexContent %}
<div class="container" style="padding-top: 50px">
    <div class="row">
        <div class="span5">
            &nbsp;
        </div>
        <div class="span6 border">
            <form id="formRegister" name="formLogin" method="post">
                <fieldset>
                    <legend>{{dict('register')|capitalize}}</legend>
                    {% for errFormHead in errFormHead %}
                        <div class="alert-message error">{{errFormHead}}</div>
                    {% endfor %}
                    {% for sucFormHead in sucFormHead %}
                        <div class="alert-message success">{{sucFormHead}}</div>
                    {% endfor %}
                    {% for infFormHead in infFormHead %}
                        <div class="alert-message info">{{infFormHead}}</div>
                    {% endfor %}
                    <div class="clearfix {%if errForm.email%}error{%endif%}">
                        <label for="email">{{dict('email')|capitalize}}</label>
                        <div class="input">
                            <input class="span3" id="email" name="email" type="text" value="{{inPost.email}}" />
                            {% for errForm in errForm.email %}<br /><span class="help-inline">{{errForm}}</span>{% endfor %}
                        </div>
                    </div>
                    <div class="clearfix {%if errForm.userName%}error{%endif%}">
                        <label for="userName">{{dict('userName')|capitalize}}</label>
                        <div class="input">
                            <input class="span3" id="userName" name="userName" type="text" value="{{inPost.userName}}" />
                            {% for errForm in errForm.userName %}<br /><span class="help-inline">{{errForm}}</span>{% endfor %}
                        </div>
                    </div>
                    <div class="clearfix {%if errForm.name%}error{%endif%}">
                        <label for="name">{{dict('name')|capitalize}}</label>
                        <div class="input">
                            <input class="span3" id="name" name="name" type="text" value="{{inPost.name}}" />
                            {% for errForm in errForm.name %}<br /><span class="help-inline">{{errForm}}</span>{% endfor %}
                        </div>
                    </div>
                    <div class="clearfix {%if errForm.password%}error{%endif%}">
                        <label for="password">{{dict('password')|capitalize}}</label>
                        <div class="input">
                            <input class="span3" id="password" name="password" type="password" />
                            {% for errForm in errForm.password %}<br /><span class="help-inline">{{errForm}}</span>{% endfor %}
                        </div>
                    </div>
                    <div class="clearfix {%if errForm.confirmPassword%}error{%endif%}">
                        <label for="password">{{dict('confirmPassword')|capitalize}}</label>
                        <div class="input">
                            <input class="span3" id="confirmPassword" name="confirmPassword" type="password" />
                            {% for errForm in errForm.confirmPassword %}<br /><span class="help-inline">{{errForm}}</span>{% endfor %}
                        </div>
                    </div>
                    <div class="actions">
                        <input id="submitRegister" name="submitRegister" type="submit" class="btn success" value="{{dict('register')|capitalize}}">
                  </div>
                </fieldset>
                <input id="csrfToken" name="csrfToken" type="hidden" value="{{csrfToken}}" />
            </form>
        </div>
        <div class="span5">
            &nbsp;
        </div>
    </div>
</div>

{% endblock %}